public class yinyongbianliang{
	public static void main(String[] args){
		int[] arr1 = new int[3];
		arr1[0] = 1;
		arr1[1] = 2;
		arr1[2] = 3;
		for(int y:arr1){
			System.out.println("arr1"+ y );//1 2 3
		}
		
		int[] arr2 = new int[]{1,2,3,4,5};
		arr2[0] = 100;
		arr2[1] = 200;
		for(int o:arr2){
			System.out.println("arr2" + o); //100 200 3 4 5
		}
		
		arr1 = arr2;//arr1 = 100 200 3 4 5
		arr1[2] = 300;
		arr1[3] = 400;
		arr2[4] = 500;
		
		for(int x:arr1){
			System.out.println(x);//100 200 300 400 500
		}
	}
}